package com.example.demo.service;

import com.example.demo.mapper.ShufflingMapper;
import com.example.demo.model.Shuffling;
import com.github.pagehelper.PageHelper;
import org.omg.CORBA.INTERNAL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;


@Service
public class ShufflingService {

    @Autowired
    private ShufflingMapper shufflingMapper;
 
  
    public List<Shuffling> selectAll(){
        // 单表分页
        //PageHelper.startPage(0,10);

        //单表自定义查询
        //Example example = new Example(Demo.class);

        return shufflingMapper.selectAll();
    }
}
